package mn.idax.exchange.otc.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import mn.idax.exchange.otc.entity.OTCAdWay;
import mn.idax.exchange.otc.entity.OTCAdWayExample;
import mn.idax.exchange.otc.vo.OTCADBeneficiarysDTO;

public interface OTCAdWayMapper {
    int countByExample(OTCAdWayExample example);

    int deleteByExample(OTCAdWayExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OTCAdWay record);

    int insertSelective(OTCAdWay record);

    List<OTCAdWay> selectByExampleWithRowbounds(OTCAdWayExample example, RowBounds rowBounds);

    List<OTCAdWay> selectByExample(OTCAdWayExample example);

    OTCAdWay selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OTCAdWay record, @Param("example") OTCAdWayExample example);

    int updateByExample(@Param("record") OTCAdWay record, @Param("example") OTCAdWayExample example);

    int updateByPrimaryKeySelective(OTCAdWay record);

    int updateByPrimaryKey(OTCAdWay record);
    
    List<OTCADBeneficiarysDTO> selectDisplayByAdId(Integer adid);
    
    List<OTCAdWay> selectAllByAdId(Integer adid);
    
    int logicDelByAdId(OTCAdWay record);
    
    List<Integer> selectDisplayTradeTypeByAdId(Integer adid);
}